package com.dd.keel.core.database;

import java.sql.Connection;

import javax.sql.DataSource;

/**
 * Database conncection manager 
 * @author Kevin.XU
 *
 */
public interface DBManager {
	
	/**
	 * Get connection
	 * @param key
	 * @return
	 * @throws Exception
	 */
	public Connection getConnection(String key) throws Exception;
	
	/**
	 * Get datasource
	 * @param key
	 * @return
	 * @throws Exception
	 */
	public DataSource getDataSource(String key) throws Exception;
	
}
